package test;



/**
 * cmd执行配置
 * 
 * @author hdy
 * 
 */
public class CmdConfig {
	private String[] commands;
	private DataOperation<String> dataOperation;
	private int maxRuntime;

	public CmdConfig() {

	}

	public CmdConfig(String[] commands, DataOperation<String> dataOperation) {
		super();
		this.commands = commands;
		this.dataOperation = dataOperation;
	}

	public CmdConfig(String[] commands, DataOperation<String> dataOperation, int maxRuntime) {
		super();
		this.commands = commands;
		this.dataOperation = dataOperation;
		this.maxRuntime = maxRuntime;
	}

	public int getMaxRuntime() {
		return maxRuntime;
	}

	public void setMaxRuntime(int maxRuntime) {
		this.maxRuntime = maxRuntime;
	}

	public String[] getCommands() {
		return commands;
	}

	public void setCommands(String[] commands) {
		this.commands = commands;
	}

	public DataOperation<String> getDataOperation() {
		return dataOperation;
	}

	public void setDataOperation(DataOperation<String> dataOperation) {
		this.dataOperation = dataOperation;
	}

}
